@foreach($res as $v)
    <li>
        <div class="orders">
            <p class="order-num">
                <span>订单号: {{$v->order_num}}</span>
                <em>待收货</em>
            </p>
            <a href="{{url('wap/order/forReceive/'.$v->id)}}">
                <?php
                $orderDetail = DB::table('order_details as a')
                        ->where('order_id',$v->id)
                        ->leftJoin('products as b','b.id','=','a.product_id')
                        ->leftJoin('categories as c','c.id','=','b.category_id')
                        ->leftJoin('pictures as d','d.id','=','b.cover_id')
                        ->select('a.*','b.name as bname','c.category','d.small_img')
                        ->get();
                foreach($orderDetail as $val) {
                ?>
                <div class="orer-info clearfix">
                    <img src="{{ config('config.picHostPrefix').$val->img }}">
                    <p class="card-style">
                        <span>{{$val->good_name}}</span>
                        <em>类型:{{$val->type_name}}</em>
                    </p>
                    <p class="pri-num">
                        <span>¥{{$val->price}}</span>
                        <i></i>
                        <em>x{{$val->num}}</em>
                    </p>
                </div>
                <?php }?>
            </a>
            <p class="order-all">
                共1件商品  合计: ¥<i>{{$v->total_price}}</i>(含运费¥0.00)
            </p>
            <p class="order-opt">
                <a href="{{url('wap/order/orderFlow/'.$v->id)}}">查看物流</a>
                <a href="#" class="qrsh" data-id="{{$v->id}}">确认收货</a>
            </p>
        </div>
    </li>
@endforeach